﻿using System;
using System.Data;
using System.Data.SqlTypes;
using System.Data.SqlClient;

namespace DataEntity
{
    /// <summary>
    /// Purpose: Data Access class for the table 't_Project_Hr'.
    /// </summary>
    public class T_Project_Hr : DBInteractionBase
    {
        #region Class Member Declarations
        private SqlString _project_Hr_KDName;
        private SqlGuid _project_Hr_KDNameID, _project_Hr_ID, _project_Hr_MainID;
        #endregion





        #region Class Property Declarations
        public SqlGuid Project_Hr_ID
        {
            get
            {
                return _project_Hr_ID;
            }
            set
            {
                SqlGuid project_Hr_IDTmp = (SqlGuid)value;
                if (project_Hr_IDTmp.IsNull)
                {
                    //throw new ArgumentOutOfRangeException("Project_Hr_ID", "Project_Hr_ID can't be NULL");
                }
                _project_Hr_ID = value;
            }
        }


        public SqlGuid Project_Hr_MainID
        {
            get
            {
                return _project_Hr_MainID;
            }
            set
            {
                SqlGuid project_Hr_MainIDTmp = (SqlGuid)value;
                if (project_Hr_MainIDTmp.IsNull)
                {
                    throw new ArgumentOutOfRangeException("Project_Hr_MainID", "Project_Hr_MainID can't be NULL");
                }
                _project_Hr_MainID = value;
            }
        }


        public SqlGuid Project_Hr_KDNameID
        {
            get
            {
                return _project_Hr_KDNameID;
            }
            set
            {
                SqlGuid project_Hr_KDNameIDTmp = (SqlGuid)value;
                if (project_Hr_KDNameIDTmp.IsNull)
                {
                    throw new ArgumentOutOfRangeException("Project_Hr_KDNameID", "Project_Hr_KDNameID can't be NULL");
                }
                _project_Hr_KDNameID = value;
            }
        }


        public SqlString Project_Hr_KDName
        {
            get
            {
                return _project_Hr_KDName;
            }
            set
            {
                SqlString project_Hr_KDNameTmp = (SqlString)value;
                if (project_Hr_KDNameTmp.IsNull)
                {
                    throw new ArgumentOutOfRangeException("Project_Hr_KDName", "Project_Hr_KDName can't be NULL");
                }
                _project_Hr_KDName = value;
            }
        }
        #endregion
    }
}
